#include "input.h"

#include "sbconstants.h"

sf::Uint8 SBInput::GetPlayerMoves(const sf::Input& Input)
{
	sf::Uint8 command = 0x00;
	if (Input.IsKeyDown(sf::Key::Up)) command |= SHIP_CONTROL::FORWARD;
	if (Input.IsKeyDown(sf::Key::Right)) command |= SHIP_CONTROL::RIGHT;
	if (Input.IsKeyDown(sf::Key::Left)) command |= SHIP_CONTROL::LEFT;
	if (Input.IsKeyDown(sf::Key::Space)) command |= SHIP_CONTROL::FIRE;
	return command;
}
